package com.jx.driving.transmission;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 请求统一编号消息
 * @author shenliuyang
 *
 * 2016年9月19日上午10:01:21
 */
@TerminalAnnotation
public class Terminal0x0402Transmission extends TimeTerminalTransmissionMessage {
	/**
	 * 1：当前驾培机构；2：教练员；3：考核员；
	 *4：安全员；5：当前教练车；6：学员；7：本计时终端。
	 */
	@ByteAnnotation(order = 1)
	private short type;//统一编号类型
	@LimitedStringAnnotation(value = 18, order = 2)
	private String no;//统一编号检索字段

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x0402Transmission [type=").append(type).append(", no=").append(no).append("]");
		return builder.toString();
	}

}
